package com.chao.wind3j.base.apiResult;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum ApiCode {
  Success(200, 0),
  Fail(100, 1),
  TokenExpired(101, 2),
  NoPermission(400, 3),
  NotLogin(103, 4);
  @JsonValue
  private final Integer value;
  private final Integer id;
  ApiCode(Integer value, Integer id) {
    this.value = value;
    this.id = id;
  }
}
